<?php
declare (strict_types = 1);

namespace app\common\validate;

use think\Validate;
class SchoolSchoolResource extends Validate
{
    protected $rule = ['vedio_url' => 'require','img_url' => 'require','create_time' => 'require|number',
    ];

    protected $message = ['vedio_url.require' => '视频为必填项','img_url.require' => '封面为必填项','create_time.require' => '创建时间为必填项','create_time.number' => '创建时间需为数字',
    ];

    /**
     * 添加
     */
    public function sceneAdd()
    {
        return $this->only(['vedio_url','img_url',]);
    }

    /**
     * 编辑
     */
    public function sceneEdit()
    {
        return $this->only(['vedio_url','img_url',]);
    }
}
